<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE></TITLE>
<META name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"><META name="vs_defaultClientScript" content="JavaScript"><META name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<SCRIPT src="/include/common.js"></SCRIPT>
<SCRIPT src="/include/RDS.js"></SCRIPT>
<SCRIPT src="/include/soap.js"></SCRIPT>
</HEAD>
<BODY>
<TABLE height="100%" width="100%">
	<TR><TD height="1%">Put new trackers here:</TD></TR>
	<TR><TD height="50%">
		<TEXTAREA id="txaTrackers" style="WIDTH: 100%; FONT-FAMILY: Monospace; HEIGHT: 100%" onfocus="this.select()"></TEXTAREA>
	</TD></TR>
	<TR><TD height="50%">
		<TEXTAREA id="txaExport" style="WIDTH: 100%; FONT-FAMILY: Monospace; HEIGHT: 100%" onfocus="this.select()"></TEXTAREA>
	</TD></TR>
	<TR><TD height="1%">
		<INPUT value="Parse" type="button" onclick="parseTrackers()">
		<INPUT id="btnExport" style="display:expression(txaExport.value?'':'none')" value="Export" type="button" onclick="exportTrackers()">
	</TD></TR>
</TABLE>
</BODY>
</HTML>
<SCRIPT language="javascript">
initWS("Common","../Common/Common.asmx");
setTimeout("document.body.focus()",100);
function parseTrackers(){
	var mTrackers = txaTrackers.value.match(/\d\d\d\w\d{7}\s?/g);
	txaExport.value = mTrackers.join("\n");
	//btnExport.value = "Export "+mTrackers.length+" trackers";
}
function exportTrackers(){
	var mTrackers = txaExport.value.match(/\d\d\d\w\d{7}/g);
	if( !mTrackers )return alert("There is no trackers to export.");
	if( !confirm("Export "+mTrackers.length+" trackers?") )return;
	var ret = WS(CO("TrackingDevice_Add"),(mTrackers+"").split(","));
	if( showSOAPError(ret) )return false;
	alert("Ok!");
}
</SCRIPT>
